package chapter22.homework01;

public class Client {
    public static void main(String[] args) {
        Subject subject = new Cat();
        Observer observer1,observer2,observer3;
        observer1 = new Mouse();
        observer2 = new Mouse();
        observer3 = new Person();

        subject.attach(observer1);
        subject.detach(observer2);
        subject.attach(observer3);
        subject.cry();
    }
}